package de.tum.in.eist.poll.shared;


import com.google.gwt.user.client.rpc.IsSerializable;

import de.tum.in.eist.poll.shared.Lecture;
import de.tum.in.eist.poll.shared.Student;

/**
 * Special Feedback class to hold extra information
 * @author sudi
 *
 */
public class Feedback implements IsSerializable {
	
	/**
	 * The extra information
	 */
	private int satisfaction;
	private String like;
	private String dislike;
	/**
	 * The lecture the feedback addresses.
	 */
	private Lecture lecture;
	
	/**
	 * The student who submitted the feedback. 
	 */
	private Student student;
	
	public Feedback() {
	}
	
	public Feedback(Lecture lecture, Student student, int satisfaction, String like, String dislike) {

		this.lecture = lecture;
		this.student = student;
		
		this.satisfaction = satisfaction;
		this.like = like;
		this.dislike = dislike;
	}
	/**
	 * get Satisfaction
	 * @return The Satisfaction
	 */
	public int getSatisfaction() {
		return satisfaction;
	}
	
	/**
	 * Get like text
	 * @return The text
	 */
	public String getLike() {
		return like;
	}
	
	/**
	 * Get dislike text
	 * @return The text
	 */
	public String getDisLike() {
		return dislike;
	}
	
	/**
	 * @return the {@link #lecture}.
	 */
	public Lecture getLecture() {
		return lecture;
	}
	
	/**
	 * @return the {@link #student}.
	 */
	public Student getStudent() {
		return student;
	}
	
	public String toString() {
		return "[Feedback: "+lecture+", "+satisfaction+", "+like+", "+dislike+"]";
	}
}
